package lh.companion.track.server;

import lh.companion.track.server.netty.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication
public class CompanionTrackServerApplication {

    @Bean(initMethod = "init")
    public NettyServer nettyServer() {
        return new NettyServer();
    }

    public static void main(String[] args) {
        SpringApplication.run(CompanionTrackServerApplication.class, args);
    }
}
